package com.star.domain;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author Star
 * @since 2021-04-21
 */
@TableName("tb_nation")
public class Nation extends Model<Nation> {

    private static final long serialVersionUID = 1L;

    /**
     * 国家编号
     */
    @TableId(value = "nat_id", type = IdType.AUTO)
    private Integer natId;
    /**
     * 国家名字
     */
    private String natName;
    /**
     * 国家代号
     */
    private String natCode;


    public Integer getNatId() {
        return natId;
    }

    public void setNatId(Integer natId) {
        this.natId = natId;
    }

    public String getNatName() {
        return natName;
    }

    public void setNatName(String natName) {
        this.natName = natName;
    }

    public String getNatCode() {
        return natCode;
    }

    public void setNatCode(String natCode) {
        this.natCode = natCode;
    }

    @Override
    protected Serializable pkVal() {
        return this.natId;
    }

    @Override
    public String toString() {
        return "Nation{" +
        ", natId=" + natId +
        ", natName=" + natName +
        ", natCode=" + natCode +
        "}";
    }
}
